package com.wanmait.travel.servlet;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wanmait.travel.dao.ScenicDAO;
import com.wanmait.travel.vo.Province;
@WebServlet("/ProvinceCityServlet")
public class ProvinceCityServlet extends HttpServlet {
	private ScenicDAO scenicDAO=ScenicDAO.getDAO();
	@Override
 	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	 List<Province> provinces=scenicDAO.findProvinceALLShow();
	 request.setAttribute("provinces", provinces);
}
}
